package com.chinabank.client.netty;


import com.chinabank.client.netty.BootNettyClient;

/**
 *
 * netty 客户端
 * 蚂蚁舞
 */
public class BootNettyClientThread extends Thread {

    private final int port;

    private final String address;
    public BootNettyClientThread(int port, String address){
        this.port = port;
        this.address = address;
    }

    public void run() {
        try {
            new BootNettyClient().connect(port, address);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}